<?php


namespace App\HttpController\Api;

use App\HttpController\Model\User;
use EasySwoole\HttpAnnotation\AnnotationController;


class Index extends AnnotationController
{

   protected $testObj;

    /**
     * @Api(name="login",group="auth",path="/api/user/login",description="用户登录接口")
     * @Method(allow={GET,POST})
     * @Param(name="account",required="")
     * @Param(name="password",required="")
     * @ApiRequestExample(curl http://127.0.0.1:9501/api/user/auth/login.html?account=test&password=123456)
     * @ApiSuccess(
    {
    "code": 200,
    "result": {
    "userId": 1,
    "userName": "测试用户",
    "account": "test",
    "userSession": "3WDETkim5dl9X1j4",
    "password": "123456",
    "balance": 0,
    "isVerify": 0
    },
    "msg": "登录成功"
    })
     * @ResponseParam(name="code",description="状态码")
     * @ResponseParam(name="result",description="api请求结果")
     * @ResponseParam(name="msg",description="api提示信息")
     * @ApiFail({"code":400,"result":null,"msg":"登录失败"})
     */
   public function index()
    {
        $this->response()->write('Hello Easyswoole');
        $this->response()->end();
    }


}